FROM ubuntubase:2204
maintainer "lsc 2603485744@qq.com"
ADD jdk-11.0.23_linux-x64_bin.tar.gz /usr/local/src
RUN ln -s /usr/local/src/jdk-11.0.23 /usr/local/src/jdk && cd /usr/local/src/jdk && bin/jlink --module-path jmods --add-modules java.desktop --output jre
ENV  JAVA_HOME=/usr/local/src/jdk
#ENV  JRE_HOME=$JAVA_HOME/jre
ENV  CLASSPATH=$JAVA_HOME/lib/:$JRE_HOME/lib
ENV  PATH=$PATH:$JAVA_HOME/bin
